﻿using System.Collections.Generic;
using Zzt.ExpertsCore.Domain.Models.Enums;

namespace Zzt.ExpertsCore.Domain.Entities
{
    /// <summary>
    /// 招标项目
    /// </summary>
    public class Bid : BaseRecordEntity
    {
        /// <summary>
        /// 招标项目名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 招标项目编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 招标项目联系人
        /// </summary>
        public string Contactor { get; set; }
        /// <summary>
        /// 招标项目联系方式
        /// </summary>
        public string ContactNumber { get; set; }
        /// <summary>
        /// 工程招标控制金额
        /// </summary>
        public decimal Ammount { get; set; }
        /// <summary>
        /// 招标单位
        /// </summary>
        public int BidCompanyId { get; set; }
        public virtual Company BidCompany { get; set; }
        /// <summary>
        /// 招标项状态：初始化，抽取中，已评议
        /// </summary>
        public BidStatus Status { get; set; }
        /// <summary>
        /// 所属工程
        /// </summary>
        public string ProjectName { get; set; }
        /// <summary>
        /// 招标项挂载的抽取任务
        /// </summary>
        public virtual ICollection<Extraction> Extractions { get; set; } = new List<Extraction>();
    }
}
